package com.sgcc.sguap.bluefw.jit.domain;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import io.bluefw.microapp.core.EnumSerializer;
import io.bluefw.microapp.core.Globalize;
import lombok.AllArgsConstructor;
import lombok.Getter;


@JsonSerialize(using=EnumSerializer.class) 
@Globalize(value = "时间单位")
@Getter
@AllArgsConstructor
public enum TimeUnitEnum {
	@Globalize(value = "天")
	DAY, 
	@Globalize(value = "小时")
	HOUR,
	@Globalize(value = "分钟")
	MINUTE,
	@Globalize(value = "秒")
	SECOND;
	
	@JsonCreator
    public static TimeUnitEnum forValue(int index) {
        return TimeUnitEnum.values()[index];
    }

}
